package tech.aistar.philosophy.dip;


/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2022/7/25 3:56 下午
 */
public class DriverTest {
    public static void main(String[] args) {
        FireCar fireCar = new FireCar();

        Driver driver = new Driver(fireCar);

        driver.play();

        FlyBoat flyBoat = new FlyBoat();
        Driver driver2 = new Driver(flyBoat);
        driver2.play();
    }
}
